﻿using System.Collections.Generic;
using Ledict.Utility.Frm;

namespace Ledict.ConditionExtract.IBLL
{
    /// <summary>
    ///     索引创建业务逻辑接口
    /// </summary>
    public interface ILuceneCreate 
    {
        int ResultCount { get; set; }
        /// <summary>
        /// 进度显示更新
        /// </summary>
        ProcessShow ProcessShow { get; set; }

        /// <summary>
        /// 开始建表述索引
        /// </summary>
        /// <param name="headWords">案由列表</param>
        /// <param name="isSentence">是否分句，默认只分段</param>
        void CreateIndex(IList<string> headWords, bool isSentence = false);

        /// <summary>
        /// 统计总数
        /// </summary>
        /// <returns></returns>
        int GetSumCount(IList<string> headWords);

        /// <summary>
        ///     统计总数
        /// </summary>
        /// <returns></returns>
        int GetCaseSumCount(int cateGoryId);

        /// <summary>
        ///     开始建表述索引(分句),通过案例
        /// </summary>
        void CreateCaseIndex(int cateGoryId);
    }
}